package tagProcessor

var TagHandlers = make(map[string]TagProcess)

// RegisterTagProcessor 为结构体注册tag处理方法
func RegisterTagProcessor(tag string, processor TagProcess) {
	if _, ok := TagHandlers[tag]; ok {
		panic("tag handle of [" + tag + "] already exists")
	}

	//根据不同tag设置不同的处理方法
	TagHandlers[tag] = processor
}
